package com.rerun.service.impl;

import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.rerun.entity.WatchedResume;
import com.rerun.mapper.WatchedResumeMapper;
import com.rerun.service.IWatchedResumeService;
import com.rerun.vo.park.ParkResumeViewVo;

import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * The type Watched resume service.
 *
 * @author dax.
 * @version v1.0
 * @since 2017 /10/11 11:48
 */
@Service
public class WatchedResumeServiceImpl extends ServiceImpl<WatchedResumeMapper, WatchedResume> implements IWatchedResumeService {
    @Resource
    private WatchedResumeMapper watchedResumeMapper;

    @Override
    public List<String> selectParkIds(String memberId) {
        return watchedResumeMapper.selectParkIds(memberId);
    }

	@Override
	public Page<ParkResumeViewVo> selectParkWatchListPage(Page<ParkResumeViewVo> page,String parkId) {
		page.setRecords(baseMapper.receivedResumeListPage(page, parkId));
        return page;
	}
}
